#pragma once
#include <QThread>

class ZSocketRecvReactor;
class ZRecvPackageFilter;


class ZSocketListener : public QThread
{
public:
	ZSocketListener(qint16 iListenPort, ZSocketRecvReactor* pRecvReactor);
	virtual ~ZSocketListener(void) = 0;

public:
	bool Begin();
	void SetPackageFilter(ZRecvPackageFilter* val);
	ZRecvPackageFilter* GetPackageFilter() const;

protected:
	qint16					m_iListenPort;
	ZSocketRecvReactor*		m_pRecvReactor;
	ZRecvPackageFilter*		m_pPackageFilter;
};

